import request from '@/utils/request'

// 登录
export function loginApi(data) {
  return request({
    url: '/login',
    method: 'POST',
    data
  })
}

// 获取当前登录用户信息
export function getUserInfoApi() {
  return request({
    url: '/user/info',
    method: 'GET'
  })
}
